<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnToOpenShopSiteLocationExamineLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_site_location_examine_logs', function (Blueprint $table) {
            $table->double('openPotential', 2)->default(0)->after('status')->comment('网规可开潜力打分');
            $table->double('flowOfPeopleScores', 2)->default(0)->after('status')->comment('人流打分');
            $table->string('passengerFlowDrive', 64)->default('')->after('status')->comment('客流驱动');
            $table->string('customerGroupType', 64)->default('')->after('status')->comment('客群类型');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_site_location_examine_logs', function (Blueprint $table) {
            $table->dropColumn('openPotential');
            $table->dropColumn('flowOfPeopleScores');
            $table->dropColumn('passengerFlowDrive');
            $table->dropColumn('customerGroupType');
        });
    }
}
